package com.tuozixuan.spring6.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.tuozixuan.spring6.service.BookService;

@Controller
public class BookController {

	@Autowired
	private BookService bookService;

	public void buyBook(Integer bookId, Integer userId) {
		bookService.buyBook(bookId, userId);
	}
}
